import urllib2
from HTTPStub import *

class HTTP:
	testMode = False
	testContent = {}
		
	def __init__(self):
		if HTTP.testMode:
			self._obj = HTTPStub(HTTP.testContent)
		else:
			self._obj = urllib2
		
	def __getattr__(self, name):
		return getattr(self._obj, name)
